package com.itheima.stock.mapper;

import com.itheima.stock.pojo.StockBusiness;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import sun.plugin.javascript.navig.Link;

import java.util.List;
import java.util.Map;

/**
* @author X1769
* @description 针对表【stock_business(主营业务表)】的数据库操作Mapper
* @createDate 2022-05-08 22:10:14
* @Entity com.itheima.stock.pojo.StockBusiness
*/
@Mapper
public interface StockBusinessMapper {

    int deleteByPrimaryKey(Long id);

    int insert(StockBusiness record);

    int insertSelective(StockBusiness record);

    StockBusiness selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(StockBusiness record);

    int updateByPrimaryKey(StockBusiness record);

    List<StockBusiness> getAll();

    List<Map> getFuzzyQueryStockCode(@Param("searchStr") String searchStr);

    Map getStockDescribe(@Param("code") String code);
}
